package com.hm.shopping.domain;

import java.util.ArrayList;
import java.util.List;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.hm.shopping.auto.su.BaseDomain;
import com.hm.shopping.auto.su.R;
import com.hm.shopping.vo.su.UserAddressVo;

import lombok.Getter;
import lombok.Setter;

/**
 * @author shishun.wang
 * @date 2018年1月23日 下午5:20:38
 * @version 1.0
 * @describe 用户账户信息
 */
@Setter
@Getter
@Document(collection = R.Database.prefix + "USER")
public class UserDomain extends BaseDomain{

	private static final long serialVersionUID = 1L;
	
	/**
	 * 账户编号
	 */
	private Long subscriberId;
	
	/**
	 * 用户地址
	 */
	@Field(value = "user_address")
	private List<UserAddressVo> userAddress = new ArrayList<UserAddressVo>();
}
